package cn.wolfcode.mp.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult {

    private boolean success = true; //默认true
    private String msg; //用于返回错误信息
    private Object data; //用于成功时返回数据

    public JsonResult(boolean success, String msg){
        this.success = success;
        this.msg = msg;
    }
}
